{include file="header.tpl" title="Them moi PAR_TRPRODUCT"}
{$javascrip1}
<form action="" method="post" target="_self" name="tongquat">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20%">
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td width="19%" align="right" nowrap="nowrap">&nbsp;</td>
<td width="19%" align="right" nowrap="nowrap">&nbsp;</td>
<td width="42%" align="right" nowrap="nowrap">
<select name="hanhdong" size="1" onchange="changevalue('hanhdong');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
<tr>
<td colspan="4"><hr></td>
</tr>
  <tr>
    <td>{$lbl_MACT}</td>
     <td colspan="3" style="color:#FF0000"><input name="MACT" id="MACT" type="text" style="background:{$colorMACT}" value="{$MACT}" size="25" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
      *      </td>
    </tr>
  
  <tr>
    <td>{$lbl_KHOANMUC}</td>
    <td colspan="3"><textarea name="KHOANMUC" cols="50" id="KHOANMUC">{$KHOANMUC}</textarea></td>
    </tr>
	<tr>
	  <td>{$lbl_F_FORMULAR}</td>
	  <td colspan="3"><textarea name="F_FORMULAR" cols="50" id="F_FORMULAR">{$F_FORMULAR}</textarea></td>
    </tr>
	<tr>
    <td>{$lbl_F_USED}</td>
    <td colspan="3">
	  <select name="F_USED" id="F_USED" onchange="ComboboxValueShowHide('F_USED');">			
		{foreach from=$cbo_F_USED key=k item=v}
			<option value="{$k}" {if $k eq $F_USED} selected="selected" {/if} >{$k}</option>
		{/foreach}
	  </select>	</td>
  </tr>
  	<tr><td colspan="4"><hr /> </td></tr>
	<tr id="1">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE1" id="F_TYPE1" onchange="selecLoaichitieu('1');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE1} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE1" id="CURCODE1">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE1} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			
			<tr>
			  <td>{$lbl_F01}</td>
			  <td><textarea name="F01" cols="50" id="F01">{$F01}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS1" id="SBVORBTS1">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS1} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP1" {if $GLORAP1 eq "GL_1"} checked="checked" {/if}  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP1');selectradioGLPH('GL','1');" value="GL_1"    />
			  GL 
			  <input {if $GLORAP1 eq "PH_1"} checked="checked"  {/if} name="GLORAP1"  type="radio"  onclick="GetRadioButtonValueShowHide('GLORAP1');GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('A','1');selectradioGLPH('PH','1');" value="PH_1"  >
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_1">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT1" id="CURORAMT1" onchange="selectcombo_soduhayphatsinh('1');">
                          <option value=""></option> 					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT1} selected="selected" {/if} >{$k} - {$v}</option>  
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE1" id="AMTTYPE1">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE1} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_1">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_CIFTYPE1}</td>
									  <td width="32%"><select name="CIFTYPE1tmp" id="CIFTYPE1tmp">
									  <option value=""></option>   					
										{foreach from=$cbo_CIFTYPE1 key=k item=v}  
										<option value="{$k}" {if $k eq $CIFTYPE1tmp} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
									  </select>
									    <span style="color:#FF0000">
									    <input type="button" name="add_branhcode3" id="add_branhcode3" onclick="add_new('CIFTYPE1tmp','CIFTYPE1');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                                        <input name="delete_branhcode3" id="delete_branhcode3" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE1tmp','CIFTYPE1');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                                        </span></td>
									  <td width="18%">&nbsp;</td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CIFTYPE1" cols="50" id="CIFTYPE1" readonly="readonly">{$CIFTYPE1}</textarea></td>
					  				</tr>
									<tr>
									  <td>{$lbl_CURORINT1}</td>
									  <td><select name="CURORINT1" id="CURORINT1">
										<option value=""></option>					
										{foreach from=$cbo_CURORINT1 key=k item=v}
										<option value="{$k}" {if $k eq $CURORINT1} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
									  </select></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_FRMTERM1}</td>
									  <td><span style="color:#FF0000">
										<input name="FRMTERM1" id="FRMTERM1" type="text" style="background:{$colorMASO}" value="{$FRMTERM1}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
										<select name="FRMTERMCD1" id="FRMTERMCD1">
										  <option value=""></option>					
										{foreach from=$cbo_FRMTERM1 key=k item=v}
										  <option value="{$k}" {if $k eq $FRMTERMCD1} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td>{$lbl_TOTERM1}</td>
									  <td><span style="color:#FF0000">
										<input name="TOTERM1" id="TOTERM1" type="text" style="background:{$colorMASO}" value="{$TOTERM1}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);"/>
										<select name="TOTERMCD1" id="TOTERMCD1">
										  <option value=""></option>					
										{foreach from=$cbo_FRMTERM1 key=k item=v}
										  <option value="{$k}" {if $k eq $TOTERMCD1} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									</tr>
								</table>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE1" type="radio"  value="A_1" onclick="GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('A','1');" {if $PHANHE1 eq "A_1"} checked="checked" {/if} />
								DD
								  <input  name="PHANHE1" type="radio" value="B_1" onclick="GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('B','1');" {if $PHANHE1 eq "B_1"} checked="checked" {/if}/>
								  FD
								  <input  name="PHANHE1" type="radio" value="C_1" onclick="GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('C','1');" {if $PHANHE1 eq "C_1"} checked="checked" {/if}/>
								LN
								<input  name="PHANHE1" type="radio" value="D_1" onclick="GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('D','1');" {if $PHANHE1 eq "D_1"} checked="checked" {/if}/>
								TR
								<input  name="PHANHE1" type="radio" value="E_1" onclick="GetRadioButtonValueShowHide('PHANHE1');selectradioclearcontrol('E','1');" {if $PHANHE1 eq "E_1"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_1">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_1">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE1" id="FDTYPE1">
										  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE1} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_1">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT1" id="FRMODSTAT1" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT1}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT1" id="TOODSTAT1" type="text" style="background:{$colorMASO}" value="{$TOODSTAT1}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS1" id="SECSTATUS1">
										  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS1} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN1tmp" id="PPLN1tmp" type="text" style="background:{$colorMASO}" value="{$PPLN1tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN1tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN1tmp','PPLN1');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN1tmp','PPLN1');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN1" cols="50" id="PPLN1" readonly="readonly">{$PPLN1}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST1tmp" id="CLLIST1tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST1tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST1tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST1tmp','CLLIST1');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST1tmp','CLLIST1');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST1" cols="50" id="CLLIST1" readonly="readonly">{$CLLIST1}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_1">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM1" id="TRTERM1">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $TRTERM1} selected="selected" {/if} >{$k} - {$v}</option>
									             
										{/foreach}		      
										
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<select name="FDORLN1" id="FDORLN1">
										  <option value=""></option>  					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  <option value="{$k}" {if $k eq $FDORLN1} selected="selected" {/if} >{$k} - {$v}</option>        
										{/foreach}		      
										</select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD1tmp" id="TRPRD1tmp">
										  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD1} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD1tmp','TRPRD1');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD1tmp','TRPRD1');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD1" cols="50" id="TRPRD1" readonly="readonly">{$TRPRD1}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_1">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP1" id="PRDGRP1">
										  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP1} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE1tmp" id="PRDCODE1tmp">
										  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE1} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE1tmp','PRDCODE1');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE1tmp','PRDCODE1');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE1" cols="50" id="PRDCODE1" readonly="readonly">{$PRDCODE1}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>
	   <!-- ket thuc phan he 1-->	  </td>
    </tr>
	
	<tr id="2">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE2" id="F_TYPE2" onchange="selecLoaichitieu('2');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE2} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE2" id="CURCODE2">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE2} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F02}</td>
			  <td><textarea name="F02" cols="50" id="F02">{$F02}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS2" id="SBVORBTS2">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS2} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP2"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP2');selectradioGLPH('GL','2');" value="GL_2" {if $GLORAP2 eq "GL_2"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP2"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP2');GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('A','2');selectradioGLPH('PH','2');" value="PH_2" {if $GLORAP2 eq "PH_2"} checked="checked" {/if} >
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_2">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT2" id="CURORAMT2" onchange="selectcombo_soduhayphatsinh('2');">
                          <option value=""></option>  					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT2} selected="selected" {/if} >{$k} - {$v}</option> 
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE2" id="AMTTYPE2">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE2} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_2">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td width="32%" colspan="3"><select name="CIFTYPE2tmp" id="CIFTYPE2tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE2tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
							<span style="color:#FF0000">
							<input type="button" name="add_branhcode3" id="add_branhcode3" onclick="add_new('CIFTYPE2tmp','CIFTYPE2');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
							<input name="delete_branhcode3" id="delete_branhcode3" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE2tmp','CIFTYPE2');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
							</span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE2" cols="50" id="CIFTYPE2" readonly="readonly">{$CIFTYPE2}</textarea></td>
						</tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="32%"><select name="CURORINT2" id="CURORINT2">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT2} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="18%">&nbsp;</td>
						  <td width="31%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM2" id="FRMTERM2" type="text" style="background:{$colorMASO}" value="{$FRMTERM2}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD2" id="FRMTERMCD2">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD2} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM2" id="TOTERM2" type="text" style="background:{$colorMASO}" value="{$TOTERM2}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD2" id="TOTERMCD2">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD2} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
				
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE2" type="radio"  value="A_2" onclick="GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('A','2');" {if $PHANHE2 eq "A_2"} checked="checked" {/if} />
								DD
								  <input name="PHANHE2" type="radio" value="B_2" onclick="GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('B','2');" {if $PHANHE2 eq "B_2"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE2" type="radio" value="C_2" onclick="GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('C','2');" {if $PHANHE2 eq "C_2"} checked="checked" {/if}/>
								LN
								<input name="PHANHE2" type="radio" value="D_2" onclick="GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('D','2');" {if $PHANHE2 eq "D_2"} checked="checked" {/if}/>
								TR
								<input name="PHANHE2" type="radio" value="E_2" onclick="GetRadioButtonValueShowHide('PHANHE2');selectradioclearcontrol('E','2');" {if $PHANHE2 eq "E_2"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_2">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_2">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE2" id="FDTYPE2">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE2} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_2">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT2" id="FRMODSTAT2" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT2}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT2" id="TOODSTAT2" type="text" style="background:{$colorMASO}" value="{$TOODSTAT2}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS2" id="SECSTATUS2">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS2} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN2tmp" id="PPLN2tmp" type="text" style="background:{$colorMASO}" value="{$PPLN2tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN2tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN2tmp','PPLN2');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN2tmp','PPLN2');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN2" cols="50" id="PPLN2" readonly="readonly">{$PPLN2}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST2tmp" id="CLLIST2tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST2tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST2tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST2tmp','CLLIST2');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST2tmp','CLLIST2');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST2" cols="50" id="CLLIST2" readonly="readonly">{$CLLIST2}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_2">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM2" id="TRTERM2">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM2} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<select name="FDORLN2" id="FDORLN2">
									  <option value=""></option>  					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  <option value="{$k}" {if $k eq $FDORLN2} selected="selected" {/if} >{$k} - {$v}</option>        
										{/foreach}		      
										</select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD2tmp" id="TRPRD2tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD2} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD2tmp','TRPRD2');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD2tmp','TRPRD2');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD2" cols="50" id="TRPRD2" readonly="readonly">{$TRPRD2}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_2">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP2" id="PRDGRP2">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP2} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE2tmp" id="PRDCODE2tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE2} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE2tmp','PRDCODE2');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE2tmp','PRDCODE2');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE2" cols="50" id="PRDCODE2" readonly="readonly">{$PRDCODE2}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="3">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE3" id="F_TYPE3" onchange="selecLoaichitieu('3');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE3} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE3" id="CURCODE3">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE3} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F03}</td>
			  <td><textarea name="F03" cols="50" id="F03">{$F03}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS3" id="SBVORBTS3">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS3} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP3"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP3');selectradioGLPH('GL','3');" value="GL_3"  {if $GLORAP3 eq "GL_3"} checked="checked" {/if}/>
			  GL 
			  <input name="GLORAP3"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP3');GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('A','3');selectradioGLPH('PH','3');" value="PH_3"  {if $GLORAP3 eq "PH_3"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_3">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT3" id="CURORAMT3" onchange="selectcombo_soduhayphatsinh('3');">
                          <option value=""></option>					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT3} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE3" id="AMTTYPE3">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE3} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_3">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td width="32%" colspan="3"><select name="CIFTYPE3tmp" id="CIFTYPE3tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE3tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
						    <input type="button" name="add_branhcode32" id="add_branhcode32" onclick="add_new('CIFTYPE3tmp','CIFTYPE3');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode32" id="delete_branhcode32" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE3tmp','CIFTYPE3');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE3" cols="50" id="CIFTYPE3" readonly="readonly">{$CIFTYPE3}</textarea></td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="32%"><select name="CURORINT3" id="CURORINT3">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT3} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="18%">&nbsp;</td>
						  <td width="31%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM3" id="FRMTERM3" type="text" style="background:{$colorMASO}" value="{$FRMTERM3}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD3" id="FRMTERMCD3">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD3} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM3" id="TOTERM3" type="text" style="background:{$colorMASO}" value="{$TOTERM3}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD3" id="TOTERMCD3">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD3} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE3" type="radio"  value="A_3" onclick="GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('A','3');" {if $PHANHE3 eq "A_3"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE3" type="radio" value="B_3" onclick="GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('B','3');" {if $PHANHE3 eq "B_3"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE3" type="radio" value="C_3" onclick="GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('C','3');" {if $PHANHE3 eq "C_3"} checked="checked" {/if}/>
								LN
								<input name="PHANHE3" type="radio" value="D_3" onclick="GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('D','3');" {if $PHANHE3 eq "D_3"} checked="checked" {/if}/>
								TR
								<input name="PHANHE3" type="radio" value="E_3" onclick="GetRadioButtonValueShowHide('PHANHE3');selectradioclearcontrol('E','3');" {if $PHANHE3 eq "E_3"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_3">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_3">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE3" id="FDTYPE3">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE3} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_3">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT3" id="FRMODSTAT3" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT3}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT3" id="TOODSTAT3" type="text" style="background:{$colorMASO}" value="{$TOODSTAT3}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS3" id="SECSTATUS3">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS3} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN3tmp" id="PPLN3tmp" type="text" style="background:{$colorMASO}" value="{$PPLN3tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN3tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN3tmp','PPLN3');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN3tmp','PPLN3');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN3" cols="50" id="PPLN3" readonly="readonly">{$PPLN3}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST3tmp" id="CLLIST3tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST3tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST3tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST3tmp','CLLIST3');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST3tmp','CLLIST3');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST3" cols="50" id="CLLIST3" readonly="readonly">{$CLLIST3}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_3">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM3" id="TRTERM3">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM3} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<select name="FDORLN3" id="FDORLN3">
									  <option value=""></option>  					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  <option value="{$k}" {if $k eq $FDORLN3} selected="selected" {/if} >{$k} - {$v}</option>        
										{/foreach}		      
										</select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD3tmp" id="TRPRD3tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD3} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD3tmp','TRPRD3');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD3tmp','TRPRD3');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD3" cols="50" id="TRPRD3" readonly="readonly">{$TRPRD3}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_3">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP3" id="PRDGRP3">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP3} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE3tmp" id="PRDCODE3tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE3} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE3tmp','PRDCODE3');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE3tmp','PRDCODE3');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE3" cols="50" id="PRDCODE3" readonly="readonly">{$PRDCODE3}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="4">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE4" id="F_TYPE4" onchange="selecLoaichitieu('4');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE4} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE4" id="CURCODE4">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE4} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F04}</td>
			  <td><textarea name="F04" cols="50" id="F04">{$F04}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS4" id="SBVORBTS4">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS4} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP4"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP4');selectradioGLPH('GL','4');" value="GL_4"  {if $GLORAP4 eq "GL_4"} checked="checked" {/if}/>
			  GL 
			  <input name="GLORAP4"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP4');GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('A','4');selectradioGLPH('PH','4');" value="PH_4" {if $GLORAP4 eq "PH_4"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_4">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT4" id="CURORAMT4" onchange="selectcombo_soduhayphatsinh('4');">
                          <option value=""></option>					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT4} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE4" id="AMTTYPE4">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE4} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_4">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td width="32%" colspan="3"><select name="CIFTYPE4tmp" id="CIFTYPE4tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE4tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
						    <input type="button" name="add_branhcode33" id="add_branhcode33" onclick="add_new('CIFTYPE4tmp','CIFTYPE4');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode33" id="delete_branhcode33" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE4tmp','CIFTYPE4');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE4" cols="50" id="CIFTYPE4" readonly="readonly">{$CIFTYPE4}</textarea></td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="32%"><select name="CURORINT4" id="CURORINT4">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT4} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="18%">&nbsp;</td>
						  <td width="31%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM4" id="FRMTERM4" type="text" style="background:{$colorMASO}" value="{$FRMTERM4}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD4" id="FRMTERMCD4">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD4} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM4" id="TOTERM4" type="text" style="background:{$colorMASO}" value="{$TOTERM4}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD4" id="TOTERMCD4">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD4} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE4" type="radio"  value="A_4" onclick="GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('A','4');" {if $PHANHE4 eq "A_4"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE4" type="radio" value="B_4" onclick="GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('B','4');" {if $PHANHE4 eq "B_4"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE4" type="radio" value="C_4" onclick="GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('C','4');" {if $PHANHE4 eq "C_4"} checked="checked" {/if}/>
								LN
								<input name="PHANHE4" type="radio" value="D_4" onclick="GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('D','4');" {if $PHANHE4 eq "D_4"} checked="checked" {/if}/>
								TR
								<input name="PHANHE4" type="radio" value="E_4" onclick="GetRadioButtonValueShowHide('PHANHE4');selectradioclearcontrol('E','4');" {if $PHANHE4 eq "E_4"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_4">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_4">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE4" id="FDTYPE4">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE4} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_4">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT4" id="FRMODSTAT4" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT4}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT4" id="TOODSTAT4" type="text" style="background:{$colorMASO}" value="{$TOODSTAT4}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS4" id="SECSTATUS4">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS4} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN4tmp" id="PPLN4tmp" type="text" style="background:{$colorMASO}" value="{$PPLN4tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN4tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN4tmp','PPLN4');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN4tmp','PPLN4');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN4" cols="50" id="PPLN4" readonly="readonly">{$PPLN4}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST4tmp" id="CLLIST4tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST4tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST4tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST4tmp','CLLIST4');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST4tmp','CLLIST4');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST4" cols="50" id="CLLIST4" readonly="readonly">{$CLLIST4}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_4">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM4" id="TRTERM4">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM4} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<select name="FDORLN4" id="FDORLN4">
									  <option value=""></option>  					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  <option value="{$k}" {if $k eq $FDORLN4} selected="selected" {/if} >{$k} - {$v}</option>        
										{/foreach}		      
										</select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD4tmp" id="TRPRD4tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD4} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD4tmp','TRPRD4');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD4tmp','TRPRD4');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD4" cols="50" id="TRPRD4" readonly="readonly">{$TRPRD4}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_4">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP4" id="PRDGRP4">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP4} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE4tmp" id="PRDCODE4tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE4} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE4tmp','PRDCODE4');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE4tmp','PRDCODE4');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE4" cols="50" id="PRDCODE4" readonly="readonly">{$PRDCODE4}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="5">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE5" id="F_TYPE5" onchange="selecLoaichitieu('5');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE5} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE5" id="CURCODE5">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE5} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F05}</td>
			  <td><textarea name="F05" cols="50" id="F05">{$F05}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS5" id="SBVORBTS5">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS5} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP5"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP5');selectradioGLPH('GL','5');" value="GL_5" {if $GLORAP5 eq "GL_5"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP5"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP5');GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('A','5');selectradioGLPH('PH','5');" value="PH_5" {if $GLORAP5 eq "PH_5"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_5">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT5" id="CURORAMT5" onchange="selectcombo_soduhayphatsinh('5');">
                          <option value=""></option>  					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT5} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE5" id="AMTTYPE5">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE5} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_5">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td colspan="3"><select name="CIFTYPE5tmp" id="CIFTYPE5tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE5tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
						    <input type="button" name="add_branhcode34" id="add_branhcode34" onclick="add_new('CIFTYPE5tmp','CIFTYPE5');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode34" id="delete_branhcode34" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE5tmp','CIFTYPE5');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE5" cols="50" id="CIFTYPE5" readonly="readonly">{$CIFTYPE5}</textarea></td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="22%"><select name="CURORINT5" id="CURORINT5">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT5} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="23%">&nbsp;</td>
						  <td width="36%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM5" id="FRMTERM5" type="text" style="background:{$colorMASO}" value="{$FRMTERM5}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD5" id="FRMTERMCD5">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD5} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM5" id="TOTERM5" type="text" style="background:{$colorMASO}" value="{$TOTERM5}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD5" id="TOTERMCD5">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD5} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE5" type="radio"  value="A_5" onclick="GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('A','5');" {if $PHANHE5 eq "A_5"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE5" type="radio" value="B_5" onclick="GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('B','5');" {if $PHANHE5 eq "B_5"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE5" type="radio" value="C_5" onclick="GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('C','5');" {if $PHANHE5 eq "C_5"} checked="checked" {/if}/>
								LN
								<input name="PHANHE5" type="radio" value="D_5" onclick="GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('D','5');" {if $PHANHE5 eq "D_5"} checked="checked" {/if}/>
								TR
								<input name="PHANHE5" type="radio" value="E_5" onclick="GetRadioButtonValueShowHide('PHANHE5');selectradioclearcontrol('E','5');" {if $PHANHE5 eq "E_5"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_5">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_5">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE5" id="FDTYPE5">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE5} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_5">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT5" id="FRMODSTAT5" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT5}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT5" id="TOODSTAT5" type="text" style="background:{$colorMASO}" value="{$TOODSTAT5}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS5" id="SECSTATUS5">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS5} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN5tmp" id="PPLN5tmp" type="text" style="background:{$colorMASO}" value="{$PPLN5tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN5tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN5tmp','PPLN5');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN5tmp','PPLN5');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN5" cols="50" id="PPLN5" readonly="readonly">{$PPLN5}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST5tmp" id="CLLIST5tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST5tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST5tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST5tmp','CLLIST5');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST5tmp','CLLIST5');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST5" cols="50" id="CLLIST5" readonly="readonly">{$CLLIST5}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_5">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM5" id="TRTERM5">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM5} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<select name="FDORLN5" id="FDORLN5">
									  <option value=""></option>  					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  <option value="{$k}" {if $k eq $FDORLN5} selected="selected" {/if} >{$k} - {$v}</option>        
										{/foreach}		      
										</select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD5tmp" id="TRPRD5tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD5} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD5tmp','TRPRD5');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD5tmp','TRPRD5');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD5" cols="50" id="TRPRD5" readonly="readonly">{$TRPRD5}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_5">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP5" id="PRDGRP5">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP5} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE5tmp" id="PRDCODE5tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE5} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE5tmp','PRDCODE5');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE5tmp','PRDCODE5');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="2"><textarea name="PRDCODE5" cols="50" id="PRDCODE5" readonly="readonly">{$PRDCODE5}</textarea>								</td>
									    <td>&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="6">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE6" id="F_TYPE6" onchange="selecLoaichitieu('6');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE6} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE6" id="CURCODE6">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE6} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F06}</td>
			  <td><textarea name="F06" cols="50" id="F06">{$F06}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS6" id="SBVORBTS6">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS6} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP6"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP6');selectradioGLPH('GL','6');" value="GL_6"  {if $GLORAP6 eq "GL_6"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP6"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP6');GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('A','6');selectradioGLPH('PH','6');" value="PH_6" {if $GLORAP6 eq "PH_6"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_6">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT6" id="CURORAMT6" onchange="selectcombo_soduhayphatsinh('6');">
                          <option value=""></option> 					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT6} selected="selected" {/if} >{$k} - {$v}</option> 
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE6" id="AMTTYPE6">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE6} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_6">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td colspan="3"><select name="CIFTYPE6tmp" id="CIFTYPE6tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE6tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
						    <input type="button" name="add_branhcode35" id="add_branhcode35" onclick="add_new('CIFTYPE6tmp','CIFTYPE6');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode35" id="delete_branhcode35" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE6tmp','CIFTYPE6');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE6" cols="50" id="CIFTYPE6" readonly="readonly">{$CIFTYPE6}</textarea></td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="22%"><select name="CURORINT6" id="CURORINT6">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT6} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="23%">&nbsp;</td>
						  <td width="36%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM6" id="FRMTERM6" type="text" style="background:{$colorMASO}" value="{$FRMTERM6}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD6" id="FRMTERMCD6">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD6} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM6" id="TOTERM6" type="text" style="background:{$colorMASO}" value="{$TOTERM6}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD6" id="TOTERMCD6">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD6} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE6" type="radio"  value="A_6" onclick="GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('A','6');" {if $PHANHE6 eq "A_6"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE6" type="radio" value="B_6" onclick="GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('B','6');" {if $PHANHE6 eq "B_6"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE6" type="radio" value="C_6" onclick="GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('C','6');" {if $PHANHE6 eq "C_6"} checked="checked" {/if}/>
								LN
								<input name="PHANHE6" type="radio" value="D_6" onclick="GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('D','6');" {if $PHANHE6 eq "D_6"} checked="checked" {/if}/>
								TR
								<input name="PHANHE6" type="radio" value="E_6" onclick="GetRadioButtonValueShowHide('PHANHE6');selectradioclearcontrol('E','6');" {if $PHANHE6 eq "E_6"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_6">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_6">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE6" id="FDTYPE6">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE6} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_6">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
										<input name="FRMODSTAT6" id="FRMODSTAT6" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT6}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT6" id="TOODSTAT6" type="text" style="background:{$colorMASO}" value="{$TOODSTAT6}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS6" id="SECSTATUS6">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS6} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN6tmp" id="PPLN6tmp" type="text" style="background:{$colorMASO}" value="{$PPLN6tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN6tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN6tmp','PPLN6');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN6tmp','PPLN6');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN6" cols="50" id="PPLN6" readonly="readonly">{$PPLN6}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST6tmp" id="CLLIST6tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST6tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST6tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST6tmp','CLLIST6');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST6tmp','CLLIST6');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST6" cols="50" id="CLLIST6" readonly="readonly">{$CLLIST6}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_6">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM6" id="TRTERM6">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM6} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
									    <select name="FDORLN6" id="FDORLN6">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $FDORLN6} selected="selected" {/if} >{$k} - {$v}</option>
									              
										{/foreach}		      
										
								      </select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD6tmp" id="TRPRD6tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD6} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD6tmp','TRPRD6');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD6tmp','TRPRD6');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD6" cols="50" id="TRPRD6" readonly="readonly">{$TRPRD6}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_6">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP6" id="PRDGRP6">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP6} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE6tmp" id="PRDCODE6tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE6} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE6tmp','PRDCODE6');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE6tmp','PRDCODE6');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE6" cols="50" id="PRDCODE6" readonly="readonly">{$PRDCODE6}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="7">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE7" id="F_TYPE7" onchange="selecLoaichitieu('7');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE7} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE7" id="CURCODE7">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE7} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F07}</td>
			  <td><textarea name="F07" cols="50" id="F07">{$F07}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS7" id="SBVORBTS7">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS7} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP7"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP7');selectradioGLPH('GL','7');" value="GL_7"  {if $GLORAP7 eq "GL_7"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP7"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP7');GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('A','7');selectradioGLPH('PH','7');" value="PH_7" {if $GLORAP7 eq "PH_7"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_7">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT7" id="CURORAMT7" onchange="selectcombo_soduhayphatsinh('7');">
                          <option value=""></option>				
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT7} selected="selected" {/if} >{$k} - {$v}</option>  
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE7" id="AMTTYPE7">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE7} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_7">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td colspan="3"><select name="CIFTYPE7tmp" id="CIFTYPE7tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE7tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
						    <input type="button" name="add_branhcode36" id="add_branhcode36" onclick="add_new('CIFTYPE7tmp','CIFTYPE7');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode36" id="delete_branhcode36" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE7tmp','CIFTYPE7');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
					    </tr>
						<tr>
						  <td>&nbsp;</td>
						  <td colspan="3"><textarea name="CIFTYPE7" cols="50" id="CIFTYPE7" readonly="readonly">{$CIFTYPE7}</textarea></td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td width="22%"><select name="CURORINT7" id="CURORINT7">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT7} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td width="23%">&nbsp;</td>
						  <td width="36%">&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM7" id="FRMTERM7" type="text" style="background:{$colorMASO}" value="{$FRMTERM7}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD7" id="FRMTERMCD7">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD7} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM7" id="TOTERM7" type="text" style="background:{$colorMASO}" value="{$TOTERM7}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD7" id="TOTERMCD7">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD7} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE7" type="radio"  value="A_7" onclick="GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('A','7');" {if $PHANHE7 eq "A_7"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE7" type="radio" value="B_7" onclick="GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('B','7');" {if $PHANHE7 eq "B_7"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE7" type="radio" value="C_7" onclick="GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('C','7');" {if $PHANHE7 eq "C_7"} checked="checked" {/if}/>
								LN
								<input name="PHANHE7" type="radio" value="D_7" onclick="GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('D','7');" {if $PHANHE7 eq "D_7"} checked="checked" {/if}/>
								TR
								<input name="PHANHE7" type="radio" value="E_7" onclick="GetRadioButtonValueShowHide('PHANHE7');selectradioclearcontrol('E','7');" {if $PHANHE7 eq "E_7"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_7">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_7">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE7" id="FDTYPE7">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE7} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_7">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <input name="FRMODSTAT7" id="FRMODSTAT7" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT7}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT7" id="TOODSTAT7" type="text" style="background:{$colorMASO}" value="{$TOODSTAT7}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS7" id="SECSTATUS7">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS7} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN7tmp" id="PPLN7tmp" type="text" style="background:{$colorMASO}" value="{$PPLN7tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN7tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN7tmp','PPLN7');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN7tmp','PPLN7');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN7" cols="50" id="PPLN7" readonly="readonly">{$PPLN7}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST7tmp" id="CLLIST7tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST7tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST7tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST7tmp','CLLIST7');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST7tmp','CLLIST7');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST7" cols="50" id="CLLIST7" readonly="readonly">{$CLLIST7}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_7">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM7" id="TRTERM7">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM7} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
									    <select name="FDORLN7" id="FDORLN7">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $FDORLN7} selected="selected" {/if} >{$k} - {$v}</option>
									              
										{/foreach}		      
										
								      </select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD7tmp" id="TRPRD7tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD7} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD7tmp','TRPRD7');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD7tmp','TRPRD7');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD7" cols="50" id="TRPRD7" readonly="readonly">{$TRPRD7}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_7">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP7" id="PRDGRP7">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP7} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE7tmp" id="PRDCODE7tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE7} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE7tmp','PRDCODE7');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE7tmp','PRDCODE7');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE7" cols="50" id="PRDCODE7" readonly="readonly">{$PRDCODE7}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="8">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE8" id="F_TYPE8" onchange="selecLoaichitieu('8');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE8} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE8" id="CURCODE8">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE8} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F08}</td>
			  <td><textarea name="F08" cols="50" id="F08">{$F08}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS8" id="SBVORBTS8">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS8} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP8"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP8');selectradioGLPH('GL','8');" value="GL_8"  {if $GLORAP8 eq "GL_8"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP8"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP8');GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('A','8');selectradioGLPH('PH','8');" value="PH_8" {if $GLORAP8 eq "PH_8"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_8">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT8" id="CURORAMT8" onchange="selectcombo_soduhayphatsinh('8');">
                          <option value=""></option>					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT8} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE8" id="AMTTYPE8">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE8} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_8">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td width="32%" colspan="2"><select name="CIFTYPE8tmp" id="CIFTYPE8tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE8tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
                            <input type="button" name="add_branhcode37" id="add_branhcode37" onclick="add_new('CIFTYPE8tmp','CIFTYPE8');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode37" id="delete_branhcode37" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE8tmp','CIFTYPE8');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
						  <td width="31%">&nbsp;</td>
						</tr>
						<tr>
						  <td>&nbsp;</td>
						  <td width="32%"><textarea name="CIFTYPE8" cols="50" id="CIFTYPE8" readonly="readonly">{$CIFTYPE8}</textarea></td>
						  <td width="18%">&nbsp;</td>
						  <td>&nbsp;</td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td><select name="CURORINT8" id="CURORINT8">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT8} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td>{$lbl_TYPE1}</td>
						  <td><select name="TYPE8" id="TYPE8">
                            <option value=""></option>
						    				
							{foreach from=$cbo_TYPE1 key=k item=v}
							
						    <option value="{$k}"  {if $k eq $TYPE8} selected="selected" {/if} >{$k} - {$v}</option>
						    
							{/foreach}		
						  
					      </select></td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM8" id="FRMTERM8" type="text" style="background:{$colorMASO}" value="{$FRMTERM8}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD8" id="FRMTERMCD8">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD8} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM8" id="TOTERM8" type="text" style="background:{$colorMASO}" value="{$TOTERM8}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD8" id="TOTERMCD8">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD8} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE8" type="radio"  value="A_8" onclick="GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('A','8');" {if $PHANHE8 eq "A_8"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE8" type="radio" value="B_8" onclick="GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('B','8');" {if $PHANHE8 eq "B_8"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE8" type="radio" value="C_8" onclick="GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('C','8');" {if $PHANHE8 eq "C_8"} checked="checked" {/if}/>
								LN
								<input name="PHANHE8" type="radio" value="D_8" onclick="GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('D','8');" {if $PHANHE8 eq "D_8"} checked="checked" {/if}/>
								TR
								<input name="PHANHE8" type="radio" value="E_8" onclick="GetRadioButtonValueShowHide('PHANHE8');selectradioclearcontrol('E','8');" {if $PHANHE8 eq "E_8"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_8">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_8">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE8" id="FDTYPE8">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE8} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_8">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <input name="FRMODSTAT8" id="FRMODSTAT8" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT8}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT8" id="TOODSTAT8" type="text" style="background:{$colorMASO}" value="{$TOODSTAT8}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS8" id="SECSTATUS8">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS8} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN8tmp" id="PPLN8tmp" type="text" style="background:{$colorMASO}" value="{$PPLN8tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN8tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN8tmp','PPLN8');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN8tmp','PPLN8');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN8" cols="50" id="PPLN8" readonly="readonly">{$PPLN8}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST8tmp" id="CLLIST8tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST8tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST8tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST8tmp','CLLIST8');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST8tmp','CLLIST8');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST8" cols="50" id="CLLIST8" readonly="readonly">{$CLLIST8}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_8">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM8" id="TRTERM8">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM8} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
									    <select name="FDORLN8" id="FDORLN8">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $FDORLN8} selected="selected" {/if} >{$k} - {$v}</option>
									              
										{/foreach}		      
										
								      </select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD8tmp" id="TRPRD8tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD8} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD8tmp','TRPRD8');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD8tmp','TRPRD8');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3">
									  <textarea name="TRPRD8" cols="50" id="TRPRD8" readonly="readonly">{$TRPRD8}</textarea>      </td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_8">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP8" id="PRDGRP8">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP8} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE8tmp" id="PRDCODE8tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE8} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE8tmp','PRDCODE8');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE8tmp','PRDCODE8');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE8" cols="50" id="PRDCODE8" readonly="readonly">{$PRDCODE8}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="9">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE9" id="F_TYPE9" onchange="selecLoaichitieu('9');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE9} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE9" id="CURCODE9">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE9} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F09}</td>
			  <td><textarea name="F09" cols="50" id="F09">{$F09}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS9" id="SBVORBTS9">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS9} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP9"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP9');selectradioGLPH('GL','9');" value="GL_9"  {if $GLORAP9 eq "GL_9"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP9"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP9');GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('A','9');selectradioGLPH('PH','9');" value="PH_9" {if $GLORAP9 eq "PH_9"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_9">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT9" id="CURORAMT9" onchange="selectcombo_soduhayphatsinh('9');">
                          <option value=""></option>					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT9} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE9" id="AMTTYPE9">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE9} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_9">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td width="19%">{$lbl_CIFTYPE1}</td>
						  <td width="32%"><select name="CIFTYPE9tmp" id="CIFTYPE9tmp">
						  <option value=""></option>   					
							{foreach from=$cbo_CIFTYPE1 key=k item=v}  
							<option value="{$k}" {if $k eq $CIFTYPE9tmp} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select>
						    <span style="color:#FF0000">
                            <input type="button" name="add_branhcode38" id="add_branhcode38" onclick="add_new('CIFTYPE9tmp','CIFTYPE9');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            <input name="delete_branhcode38" id="delete_branhcode38" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE9tmp','CIFTYPE9');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                            </span></td>
						  <td width="18%">&nbsp;</td>
						  <td width="31%">&nbsp;</td>
						</tr>
						<tr>
						  <td>&nbsp;</td>
						  <td><textarea name="CIFTYPE9" cols="50" id="CIFTYPE9" readonly="readonly">{$CIFTYPE9}</textarea></td>
						  <td>&nbsp;</td>
						  <td>&nbsp;</td>
					  </tr>
						<tr>
						  <td>{$lbl_CURORINT1}</td>
						  <td><select name="CURORINT9" id="CURORINT9">
							<option value=""></option>					
							{foreach from=$cbo_CURORINT1 key=k item=v}
							<option value="{$k}" {if $k eq $CURORINT9} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
						  </select></td>
						  <td>&nbsp;</td>
						  <td>&nbsp;</td>
						</tr>
						<tr>
						  <td>{$lbl_FRMTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="FRMTERM9" id="FRMTERM9" type="text" style="background:{$colorMASO}" value="{$FRMTERM9}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="FRMTERMCD9" id="FRMTERMCD9">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $FRMTERMCD9} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						  <td>{$lbl_TOTERM1}</td>
						  <td><span style="color:#FF0000">
							<input name="TOTERM9" id="TOTERM9" type="text" style="background:{$colorMASO}" value="{$TOTERM9}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
							<select name="TOTERMCD9" id="TOTERMCD9">
						  <option value=""></option>					
							{foreach from=$cbo_FRMTERM1 key=k item=v}
							  <option value="{$k}" {if $k eq $TOTERMCD9} selected="selected" {/if} >{$k} - {$v}</option>
							{/foreach}		
							</select>
						  </span></td>
						</tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE9" type="radio"  value="A_9" onclick="GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('A','9');" {if $PHANHE9 eq "A_9"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE9" type="radio" value="B_9" onclick="GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('B','9');" {if $PHANHE9 eq "B_9"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE9" type="radio" value="C_9" onclick="GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('C','9');" {if $PHANHE9 eq "C_9"} checked="checked" {/if}/>
								LN
								<input name="PHANHE9" type="radio" value="D_9" onclick="GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('D','9');" {if $PHANHE9 eq "D_9"} checked="checked" {/if}/>
								TR
								<input name="PHANHE9" type="radio" value="E_9" onclick="GetRadioButtonValueShowHide('PHANHE9');selectradioclearcontrol('E','9');" {if $PHANHE9 eq "E_9"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_9">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_9">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE9" id="FDTYPE9">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE9} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_9">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <input name="FRMODSTAT9" id="FRMODSTAT9" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT9}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT9" id="TOODSTAT9" type="text" style="background:{$colorMASO}" value="{$TOODSTAT9}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS9" id="SECSTATUS9">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS9} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN9tmp" id="PPLN9tmp" type="text" style="background:{$colorMASO}" value="{$PPLN9tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN9tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN9tmp','PPLN9');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN9tmp','PPLN9');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN9" cols="50" id="PPLN9" readonly="readonly">{$PPLN9}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST9tmp" id="CLLIST9tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST9tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST9tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST9tmp','CLLIST9');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST9tmp','CLLIST9');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST9" cols="50" id="CLLIST9" readonly="readonly">{$CLLIST9}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_9">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM9" id="TRTERM9">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM9} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
									    <select name="FDORLN9" id="FDORLN9">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $FDORLN9} selected="selected" {/if} >{$k} - {$v}</option>
									              
										{/foreach}		      
										
								      </select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD9tmp" id="TRPRD9tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD9} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD9tmp','TRPRD9');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD9tmp','TRPRD9');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="TRPRD9" cols="50" id="TRPRD9" readonly="readonly">{$TRPRD9}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_9">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP9" id="PRDGRP9">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP9} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE9tmp" id="PRDCODE9tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE9} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE9tmp','PRDCODE9');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE9tmp','PRDCODE9');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE9" cols="50" id="PRDCODE9" readonly="readonly">{$PRDCODE9}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
	
	<tr id="10">
	  <td colspan="4">
	  	<table width="100%" cellpadding="0" cellspacing="0">
			<tr>
				<td width="20%">{$lbl_F_TYPE1}</td>
				<td width="31%"><select name="F_TYPE10" id="F_TYPE10" onchange="selecLoaichitieu('10');">
			  <option value=""></option>						
				{foreach from=$cbo_F_TYPE1 key=k item=v}
				  <option value="{$k}" {if $k eq $F_TYPE10} selected="selected" {/if} >{$k} - {$v}</option>
				{/foreach}		
				</select></td>
				<td width="18%">{$lbl_CURCODE1}</td>
			  <td width="31%"><select name="CURCODE10" id="CURCODE10">
			  <option value=""></option>					
				{foreach from=$cbo_CURCODE1 key=k item=v}
				<option value="{$k}" {if $k eq $CURCODE10} selected="selected" {/if} >{$k} - {$v}</option> 
				{/foreach}		 
			  </select></td>
			</tr>
			<tr>
			  <td>{$lbl_F10}</td>
			  <td><textarea name="F10" cols="50" id="F10">{$F10}</textarea></td>
			  <td>{$lbl_SBVORBTS1}</td>
			  <td><select name="SBVORBTS10" id="SBVORBTS10">
                <option value=""></option>
			    						
							{foreach from=$cbo_SBVORBTS1 key=k item=v}
							
			    <option value="{$k}" {if $k eq $SBVORBTS10} selected="selected" {/if} >{$k} - {$v}</option>
			    
							{/foreach}		
						  
		      </select></td>
			</tr>
			<tr>
			  <td>&nbsp;</td>
			  <td colspan="2">
			  <input name="GLORAP10"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP10');selectradioGLPH('GL','10');" value="GL_10" {if $GLORAP10 eq "GL_10"} checked="checked" {/if} />
			  GL 
			  <input name="GLORAP10"  type="radio" onclick="GetRadioButtonValueShowHide('GLORAP10');GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('A','10');selectradioGLPH('PH','10');" value="PH_10" {if $GLORAP10 eq "PH_10"} checked="checked" {/if}>
			  {$lbl_phanhe}
			  <hr />			  </td>
			   <td>&nbsp;</td>
			</tr>
			<!-- Phan he GL --->
			<tr id="GL_10">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						  
					<tr>
					  <td width="20%">{$lbl_CURORAMT1}</td>
					  <td width="31%"><select name="CURORAMT10" id="CURORAMT10" onchange="selectcombo_soduhayphatsinh('10');">
                          <option value=""></option>	    					
							{foreach from=$cbo_CURORAMT1 key=k item=v}
					      <option value="{$k}" {if $k eq $CURORAMT10} selected="selected" {/if} >{$k} - {$v}</option>   
							{/foreach}		
				        </select></td>
					  <td width="18%">{$lbl_AMTTYPE1}</td>
					  <td width="31%"><select name="AMTTYPE10" id="AMTTYPE10">
                        <option value=""></option>
					    					
						{foreach from=$cbo_AMTTYPE1 key=k item=v}
						
					    <option value="{$k}" {if $k eq $AMTTYPE10} selected="selected" {/if} >{$k} - {$v}</option>
					    
						{/foreach}		
					  
				      </select></td>
					</tr>
				  </table>		</td> 
			</tr>
			<!--- Ket thuc GL, bat dau Phan he --->
			<tr id="PH_10">
				<td colspan="4">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
							  <td width="19%">{$lbl_CIFTYPE1}</td>
							  <td width="32%"><select name="CIFTYPE10tmp" id="CIFTYPE10tmp">
							  <option value=""></option>   					
								{foreach from=$cbo_CIFTYPE1 key=k item=v}  
								<option value="{$k}" {if $k eq $CIFTYPE10tmp} selected="selected" {/if} >{$k} - {$v}</option>
								{/foreach}		
							  </select>
							    <span style="color:#FF0000">
							    <input type="button" name="add_branhcode39" id="add_branhcode39" onclick="add_new('CIFTYPE10tmp','CIFTYPE10');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                                <input name="delete_branhcode39" id="delete_branhcode39" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CIFTYPE10tmp','CIFTYPE10');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
                                </span></td>
							  <td width="18%">&nbsp;</td>
							  <td width="31%">&nbsp;</td>
							</tr>
							<tr>
							  <td>&nbsp;</td>
							  <td><textarea name="CIFTYPE10" cols="50" id="CIFTYPE10" readonly="readonly">{$CIFTYPE10}</textarea></td>
							  <td>&nbsp;</td>
							  <td>&nbsp;</td>
					  </tr>
							<tr>
							  <td>{$lbl_CURORINT1}</td>
							  <td><select name="CURORINT10" id="CURORINT10">
								<option value=""></option>					
								{foreach from=$cbo_CURORINT1 key=k item=v}
								<option value="{$k}" {if $k eq $CURORINT10} selected="selected" {/if} >{$k} - {$v}</option>
								{/foreach}		
							  </select></td>
							  <td>&nbsp;</td>
							  <td>&nbsp;</td>
							</tr>
							<tr>
							  <td>{$lbl_FRMTERM1}</td>
							  <td><span style="color:#FF0000">
								<input name="FRMTERM10" id="FRMTERM10" type="text" style="background:{$colorMASO}" value="{$FRMTERM10}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
								<select name="FRMTERMCD10" id="FRMTERMCD10">
							  <option value=""></option>					
								{foreach from=$cbo_FRMTERM1 key=k item=v}
								  <option value="{$k}" {if $k eq $FRMTERMCD10} selected="selected" {/if} >{$k} - {$v}</option>
								{/foreach}		
								</select>
							  </span></td>
							  <td>{$lbl_TOTERM1}</td>
							  <td><span style="color:#FF0000">
								<input name="TOTERM10" id="TOTERM10" type="text" style="background:{$colorMASO}" value="{$TOTERM10}" size="10" maxlength="5" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" onkeypress="return numberOnly(event);" />
								<select name="TOTERMCD10" id="TOTERMCD10">
							  <option value=""></option>					
								{foreach from=$cbo_FRMTERM1 key=k item=v}
								  <option value="{$k}" {if $k eq $TOTERMCD10} selected="selected" {/if} >{$k} - {$v}</option>
								{/foreach}		
								</select>
							  </span></td>
							</tr>
						</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="20%">{$lbl_APPTYPE1}</td>
							  <td width="80%" colspan="3">
								<input name="PHANHE10" type="radio"  value="A_10" onclick="GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('A','10');" {if $PHANHE10 eq "A_10"} checked="checked" {/if}/>
								DD
								  <input name="PHANHE10" type="radio" value="B_10" onclick="GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('B','10');" {if $PHANHE10 eq "B_10"} checked="checked" {/if}/>
								  FD
								  <input name="PHANHE10" type="radio" value="C_10" onclick="GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('C','10');" {if $PHANHE10 eq "C_10"} checked="checked" {/if}/>
								LN
								<input name="PHANHE10" type="radio" value="D_10" onclick="GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('D','10');" {if $PHANHE10 eq "D_10"} checked="checked" {/if}/>
								TR
								<input name="PHANHE10" type="radio" value="E_10" onclick="GetRadioButtonValueShowHide('PHANHE10');selectradioclearcontrol('E','10');" {if $PHANHE10 eq "E_10"} checked="checked" {/if}/> 
						  TF</td>
						</tr>
						
						<tr id="A_10">
							<td colspan="4">													</td>
						</tr>
						<tr id="B_10">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FDTYPE1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="FDTYPE10" id="FDTYPE10">
									  <option value=""></option> 					
										{foreach from=$cbo_FDTYPE1 key=k item=v}         
										  <option value="{$k}" {if $k eq $FDTYPE10} selected="selected" {/if} >{$k} - {$v}</option>
										{/foreach}		
										</select>
									  </span></td>
									  <td width="5%">&nbsp;</td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="C_10">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_FRMODSTAT1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <input name="FRMODSTAT10" id="FRMODSTAT10" type="text" style="background:{$colorMASO}" value="{$FRMODSTAT10}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									  <td width="18%">{$lbl_TOODSTAT1}</td>
									  <td width="31%"><span style="color:#FF0000">
										<input name="TOODSTAT10" id="TOODSTAT10" type="text" style="background:{$colorMASO}" value="{$TOODSTAT10}" size="20" maxlength="1" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_SECSTATUS1}</td>
									  <td><span style="color:#FF0000">
										<select name="SECSTATUS10" id="SECSTATUS10">
									  <option value=""></option>  					
										{foreach from=$cbo_SECSTATUS1 key=k item=v}          
										  <option value="{$k}" {if $k eq $SECSTATUS10} selected="selected" {/if} >{$k} - {$v}</option>     
										{/foreach}		      
										</select>
									  </span></td>
									  <td>&nbsp;</td>
									  <td>&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PPLN1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="PPLN10tmp" id="PPLN10tmp" type="text" style="background:{$colorMASO}" value="{$PPLN10tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_1.php?name=PPLN10tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode" id="add_branhcode" onclick="add_new('PPLN10tmp','PPLN10');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode" id="delete_branhcode" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PPLN10tmp','PPLN10');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="PPLN10" cols="50" id="PPLN10" readonly="readonly">{$PPLN10}</textarea></td>
									</tr>
									<tr>
									  <td>{$lbl_CLLIST1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<input name="CLLIST10tmp" id="CLLIST10tmp" type="text" style="background:{$colorMASO}" value="{$CLLIST10tmp}" size="20" maxlength="15" onkeyup="this.value=this.value.toUpperCase().replace(' ','');" />
										<input type="button" onclick="mywindow = window.open('par_rptTT13Phuluc1_id_2.php?name=CLLIST10tmp', 'mywindow','menubar=0,resizable=yes,width=800,height=300, scrollbars=yes');mywindow.moveTo((screen.width-800)/2,screen.height/2);" name="phonggd2" id="replacement_binoculars" value="     " />
										<input type="button" name="add_branhcode2" id="add_branhcode2" onclick="add_new('CLLIST10tmp','CLLIST10');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode2" id="delete_branhcode2" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('CLLIST10tmp','CLLIST10');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="CLLIST10" cols="50" id="CLLIST10" readonly="readonly">{$CLLIST10}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="D_10">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_TRTERM1}</td>
									  <td width="32%"><span style="color:#FF0000">
									    <select name="TRTERM10" id="TRTERM10">
                                      <option value=""></option> 					
										{foreach from=$cbo_TRTERM1 key=k item=v}          
									      <option value="{$k}" {if $k eq $TRTERM10} selected="selected" {/if} >{$k} - {$v}</option>   
										{/foreach}		      
								      </select>
									  </span></td>
									  <td width="18%">{$lbl_FDORLN1}</td>
									  <td width="31%"><span style="color:#FF0000">
									    <select name="FDORLN10" id="FDORLN10">
                                          <option value=""></option>
									        					
										{foreach from=$cbo_FDORLN1 key=k item=v}          
										  
									      <option value="{$k}" {if $k eq $FDORLN10} selected="selected" {/if} >{$k} - {$v}</option>
									              
										{/foreach}		      
										
								      </select>
									  </span></td>
									</tr>
									<tr>
									  <td>{$lbl_TRPRD1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="TRPRD10tmp" id="TRPRD10tmp">
									  <option value=""></option>    					
										{foreach from=$cbo_TRPRD1 key=k item=v}           
										  <option value="{$k}" {if $k eq $TRPRD10} selected="selected" {/if} >{$k} - {$v}</option>    
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('TRPRD10tmp','TRPRD10');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('TRPRD10tmp','TRPRD10');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
								</span></td>
									</tr>
									<tr>
									  <td>&nbsp;</td>
									  <td colspan="3"><textarea name="TRPRD10" cols="50" id="TRPRD10" readonly="readonly">{$TRPRD10}</textarea></td>
									</tr>
								</table>					</td>
						</tr>
						<tr id="E_10">
							<td colspan="4">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
									  <td width="19%">{$lbl_PRDGRP1}</td>
									  <td colspan="2"><span style="color:#FF0000">
										<select name="PRDGRP10" id="PRDGRP10">
									  <option value=""></option>					
										{foreach from=$cbo_PRDGRP1 key=k item=v}           	  
										  <option value="{$k}" {if $k eq $PRDGRP10} selected="selected" {/if} >{$k} - {$v}</option>		  
										{/foreach}		      
										</select>
									  </span></td>
									  <td width="31%">&nbsp;</td>
									</tr>
									<tr>
									  <td>{$lbl_PRDCODE1}</td>
									  <td colspan="3"><span style="color:#FF0000">
										<select name="PRDCODE10tmp" id="PRDCODE10tmp">
									  <option value=""></option>				
										{foreach from=$cbo_PRDCODE1 key=k item=v}           
										  <option value="{$k}" {if $k eq $PRDCODE10} selected="selected" {/if} >{$k} - {$v}</option>	  
										{/foreach}		      
										</select>
										<input type="button" name="add_branhcode22" id="add_branhcode22" onclick="add_new('PRDCODE10tmp','PRDCODE10');" value="{$ten_them_moi}"  class="button_style" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
										<input name="delete_branhcode22" id="delete_branhcode22" type="button" value=" {$ten_xoa} " class="button_style" onclick="deleted('PRDCODE10tmp','PRDCODE10');"  onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" />
									  </span></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td colspan="3"><textarea name="PRDCODE10" cols="50" id="PRDCODE10" readonly="readonly">{$PRDCODE10}</textarea>								</td>
									</tr>
								</table>					</td>
						</tr>
					</table>				</td>
			</tr>
			<tr><td colspan="4"><hr /> </td></tr>
		</table>	  </td>
    </tr>
		
<tr>
<td colspan="4"><p>&nbsp;</p></td>
</tr>
<tr>
<td colspan="4" align="right">

<input name="continue" type="hidden"  class="button_style" id="continue_1" onmouseover="this.className='button_style_hover'" onmouseout="this.className='button_style'" value="{$trang_ke_tiep}" />
<input type="submit" name="capnhat" id="capnhat" value="{$ten_cap_nhat}"  class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'" /></td>
</tr>
<tr>
<td colspan="4">
<hr></td>
</tr>

<tr>
<td >
<input type="button" value="{$ten_trove}" onclick="history.back();" class="button_style" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"></td>
<td align="right" nowrap="nowrap">&nbsp;</td>
<td align="right" nowrap="nowrap">&nbsp;</td>
<td align="right" nowrap="nowrap">
<select name="hanhdong1" size="1" onchange="changevalue('hanhdong1');">
 {foreach from=$chuyentrang1 key=k item=v}
      <option value="{$k}" {if $select_cbo_chuyentrang eq $k} selected="selected" {/if}>{$v}</option>
 	{/foreach}
</select>
<input name="action" type="submit" value="{$ten_thuc_hien}" class="button_style" onClick="" onMouseOver="this.className='button_style_hover'" onMouseOut="this.className='button_style'"/></td>
</tr>
</table>
</form>
{$javascriptsetstyle}
{$script_onload}
{include file="footer.tpl"}
